package com.jader.activities;

import com.jader.fragment.Store_Goods_fragment;
import com.zlp.jader.R;
import android.os.Bundle;
import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.view.View;
import android.view.View.OnClickListener;

public class Store extends Activity implements OnClickListener {
	private FragmentManager manager;
	private FragmentTransaction transaction;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity);
		manager = getFragmentManager();
		transaction = manager.beginTransaction();
		Store_Goods_fragment fragment = new Store_Goods_fragment();

		transaction.replace(R.id.activity_frame, fragment);
		transaction.commit();

	}

	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.store_back:
			finish();
			break;

		default:
			break;
		}

	}

}
